import { request } from "../../request/index.js";
import regeneratorRuntime, { async } from '../../lib/runtime/runtime';

// pages/infolist/index.js
Page({
  data: {
    isPop: false,
    isAdmin: 0
  },

  onLoad (e) {
    console.log(e)
    if (e.isAdmin) {
      this.setData ({
        isAdmin: e.isAdmin - 0,
      })
    }
  },

  showPop () {
    this.setData ({
      isPop: true
    })
  },
  closePop () {
    this.setData ({
      isPop: false
    })
  },

  // 请求数据
  async getDataList () {
    const res = await request({
      url: ''
    })
  }
})